﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/QuizAdmin.Master" AutoEventWireup="true" CodeBehind="EditAttempt.aspx.cs" Inherits="BladeTecWebApplication.Admin.EditAttempt" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript">
	function openPrint() {
		window.open('PrintAttempt.aspx?attempt_id=' + $("#MainContent_hfAttemptID").val(), 'print_quiz');
	}

</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<span class="pageTitle">Edit Attempt</span>
<br /><br />

<asp:Panel ID="pnlAttemptDetail" runat="server">
	
	<table cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td>
				<table cellpadding="2" cellspacing="0" border="0">
					<tr>
						<td>Applicant Name:</td>
						<td style="padding-left:10px;"><asp:Label ID="lblApplicantName" Font-Bold="true" runat="server"></asp:Label></td>
					</tr>
					<tr>
						<td>Attempt Date:</td>
						<td style="padding-left:10px;"><asp:Label ID="lblAttemptDate" runat="server"></asp:Label></td>
					</tr>
					<tr>
						<td>Graded:</td>
						<td style="padding-left:10px;"><asp:Label ID="lblGraded" runat="server"></asp:Label></td>
					</tr>
					<tr>
						<td>Score:</td>
						<td style="padding-left:10px;"><asp:Label ID="lblScore" runat="server"></asp:Label></td>
					</tr>
				</table>
			</td>
			<td style="vertical-align:top; text-align:right; padding-left: 20px;">
				<table cellpadding="0" cellspacing="0" border="0">
					<tr>
						<td valign="top"><span class="ui-icon ui-icon-print"></span></td>
						<td style="width:5px;">&nbsp;</td>
						<td style="padding-bottom:5px;"><a class="dashboardLink" href="javascript:openPrint();">Print</a></td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
	<br /><br />

	<table cellpadding="0" cellspacing="0" border="0" runat="server" id="tblAttemptDetail" class="netsysTable">
		<tr>
			<th>Question</th>
			<th>Question Text</th>
			<th>Question Type</th>
			<th>Applicant Response</th>
			<th>Correct Answer?</th>
		</tr>
	</table>

	<div style="text-align:right; margin-top:10px;">
		<asp:Button ID="btnSaveAttempt" runat="server" onclick="btnSaveAttempt_Click" Text="Save Attempt" />
	</div>

	<asp:HiddenField ID="hfAttemptID" runat="server" />

</asp:Panel>

<asp:Panel ID="pnlConfirm" runat="server" Visible="false">
	Quiz for <asp:Label ID="lblConfirmName" runat="server" Font-Bold="true"></asp:Label> was graded successfully.
	<br /><br />
	<a class="dashboardLink" href="ViewAttempts.aspx">View Attempts</a>
</asp:Panel>

</asp:Content>
